package edu.cuit.avatar.entity;

import edu.cuit.avatar.annotations.TableField;
import edu.cuit.avatar.annotations.TableId;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author <a href="mailto:1020zhaodan@163.com">Adan</a>
 * @version 1.0
 * @date 2025/7/26 9:47
 */
@Setter
@Getter
@ToString
public class Course {
    @Getter(onMethod_ = @TableId)
    private Integer id;

    private String name;

    @Getter(onMethod_ = @TableField(name = "credits"))
    private int credit;

    private String intro;
}
